package cn.zqh.auth;

import org.junit.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.transaction.RabbitTransactionManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Author: zqh
 * @Date: 2022-12-22-13:36
 * @Description: 测试字符串分割$
 */
@SpringBootTest
public class test {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    @Test
   public   void testSendMessage(){
        String message = "张启航";
        rabbitTemplate.convertAndSend("ms1","",message);
    }
}
